POV-Ray : Newsgroups : povray.binaries.images : triangulation of flat shapes : triangulation of flat shapes Server Time
18 Aug 2024 00:16:08 EDT (-0400)
  triangulation of flat shapes  
From: Wlodzimierz ABX Skiba
Date: 12 Jul 2001 14:34:06
Message: <3b4ded9e@news.povray.org>
I had to prepare little engine to triangulate any flat shapes. It's not ready
for upload (dirty code) but has first outputs. First pictures present shape
(rounded rectangle) after triangulation but without triangles. Second picture
shows grouped triangles - regular and changed. I plan to export this
triangulated stuff in PCM file format. Engine was made as POV script.
Any comments ?

--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message


Attachments:
Download 'tri1.png' (8 KB) Download 'tri2.png' (74 KB)

Preview of image 'tri1.png'
tri1.png

Preview of image 'tri2.png'
tri2.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.